﻿using MuseumApp.Data;
using MuseumApp.Data.Models;
using MuseumApp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MuseumApp.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {

            IndexVm vm = new IndexVm();
            vm.Title = "Hello museums";

            List<Museum> mList = new List<Museum>();
            /*
            mList.Add(new Museum { MuseumId = 1, City = "Htown", Description = "3Lorum Ipsum Dolo", Name = "MOMA Houston" });
            mList.Add(new Museum { MuseumId = 2, City = "Dallas", Description = "2Lorum Ipsum Dolo", Name = "MOMA Dallas" });
            mList.Add(new Museum { MuseumId = 2, City = "Austin", Description = "1Lorum Ipsum Dolo", Name = "MOMA Austin" });
            */


            vm.Museums = mList;
            return View(vm);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}